<?php get_header() ?>

	<?php if (have_posts()) : ?>
	
	<h2>Search result for <?php echo wp_specialchars(stripslashes(get_query_var('s')), true) ?></h2>
	
		<?php while (have_posts()) : the_post() ?>
		
			<?php the_date('', '<h2 class="date"><abbr title="'.get_the_time('Y-m-d\TH:i:sO').'">', '</abbr></h2>') ?>
			
				<div class="<?php post_class() ?>">
				
					<h3 class="entry-title"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute() ?>" rel="bookmark" class="permalink"><?php the_title() ?></a></h3>
						
					<div class="entry-content">
					
						<?php the_excerpt() ?>
					
					</div>
					
					<ul class="meta">
						<li class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php unset($previousday); printf('%1$s &#8211; %2$s', the_date('', '', '', false), get_the_time()) ?></abbr></li>
						<?php the_tags('<li class="tags">Tags: ', ', ', '</li>') ?>
						<li class="author">By <span class="author vcard"><a class="url fn" href="<?php the_author_url() ?>"><?php the_author() ?></a></span></li>
						<?php edit_post_link('Edit This', '<li class="editthis">', '</li>') ?>
					</ul>
			
				</div> <!-- .hentry -->
					
		<?php endwhile; ?>
	
		<?php page_navigation() ?>
		
	<?php else : ?>
	
			<h2 class="entry-title">Nothing Found</h2>
			
				<div class="<?php post_class() ?>">				
			
					<div class="entry-content">
						<p><strong>Sorry</strong>, but nothing matched your search criteria. Please try again with some different keywords.</p>
						<form method="get" action="<?php bloginfo('home') ?>">
							<input name="s" type="text" value="<?php echo wp_specialchars(stripslashes(get_query_var('s')), true) ?>" size="40" />
							<input type="submit" value="Find" />
						</form>		
					</div>
				
				</div><!-- .hentry -->
	
	<?php endif; ?>
	
<?php get_footer() ?>
